package com.android.djlmapp.adapter.my;

import android.content.Context;

import com.android.djlmapp.R;

import java.util.HashMap;
import java.util.List;

public class MyPerRecyclerviewAdapter extends MyBaseRecyclerViewAdapter<HashMap<String, Object>> {
    public MyPerRecyclerviewAdapter(List<HashMap<String, Object>> hashMaps, Context mContext, int layId) {
        super(hashMaps, mContext, layId);
    }

    @Override
    public void convert(ViewHolder holder, HashMap<String, Object> itemData) {
        holder.setText(R.id.my_per_item_name,(String)itemData.get("name"));
        holder.setSwitchStatus(R.id.my_per_item_switch,(Boolean) itemData.get("status"));
        if((Boolean) itemData.get("status")){
            holder.setSwitchClick(R.id.my_per_item_switch,false);
        }
    }



}
